package com.adcok.lcdns.activity.mypage;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.adcok.lcdns.R;
/**
 *	이체신청 내역 상세보기 Activity 
 */
public class LottoAdMyPageChangeListDetailActivity extends Activity{

	/** 목록 번호 텍스트뷰 **/
	private TextView mNumberTv;
	/** 이체신청 날짜 텍스트뷰 **/
	private TextView mAskDateTv;
	/** 이제 완료 텍스트뷰 **/
	private TextView mPaidDateTv;
	/** 이체신청 금액 텍스트뷰 **/
	private TextView mAskMoneyTv;
	/** 이체 완료 여부 텍스트뷰 **/
	private TextView mIsChangeTv;
	
	/** 총 누적 적립금액 **/
	private TextView mNujukTv;
	/** 전환 신청금액 **/
	private TextView mAskTv;
	/** 이체 완료금액 **/
	private TextView mPaidTv;
	/** 이체신청 가능금액 **/
	private TextView mUsableTv;
	
	/** 예금주 명 텍스트 뷰**/
	private TextView mAccountNameTv;
	/** 은행 명 텍스트 뷰**/
	private TextView mBankNameTv;
	/** 계좌번호 텍스트 뷰**/
	private TextView mAccountNumberTv;
	/** 이체신청 금액 텍스트 뷰**/
	private TextView mRequestMoneyTv;
	/** 코멘트 텍스트 뷰**/
	private TextView mCommentTv;
	
	private String mNumber, mAskDate, mPaidDate, mPaidMoney, mIsChange;
	private String mAccountName, mBankName, mAccountNumber, mRequestMoney, mComment;
	private String mNujukMoney, mAskMoney, mAllPaidMoney, mUsableMoney;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.lottoad_menu_mypage_changedetail);
		
		mNumberTv = (TextView) findViewById(R.id.textView_num);
		mAskDateTv = (TextView) findViewById(R.id.textView_askDate);
		mPaidDateTv = (TextView) findViewById(R.id.textView_paidDate);
		mAskMoneyTv = (TextView) findViewById(R.id.textView_paidMoney);
		mIsChangeTv = (TextView) findViewById(R.id.textView_change);
		
		mAccountNameTv = (TextView) findViewById(R.id.textView_accountName);
		mBankNameTv = (TextView) findViewById(R.id.textView_bankName);
		mAccountNumberTv = (TextView) findViewById(R.id.textView_accountNum);
		mRequestMoneyTv = (TextView) findViewById(R.id.textView_askMoney);
		mCommentTv = (TextView) findViewById(R.id.textView_comment);
		
		mNujukTv = (TextView) findViewById(R.id.textView_nujuk);
		mAskTv = (TextView) findViewById(R.id.textView_ask);
		mPaidTv = (TextView) findViewById(R.id.textView_paid);
		mUsableTv = (TextView) findViewById(R.id.textView_usable);
	}
	
	@Override
	protected void onResume() {
		super.onResume();
		Intent intent = getIntent();
		
		// intent String Extra 획득
		mNumber = intent.getStringExtra("number");
		mAskDate = intent.getStringExtra("askDate");
		mPaidDate = intent.getStringExtra("paidDate");
		mPaidMoney = intent.getStringExtra("askMoney");
		mIsChange = intent.getStringExtra("isChange");
		
		mAccountName = intent.getStringExtra("accountName");
		mBankName = intent.getStringExtra("bankName");
		mAccountNumber = intent.getStringExtra("accountNumber");
		mRequestMoney = intent.getStringExtra("askMoney");
		mComment = intent.getStringExtra("comment");
		
		mNujukMoney = intent.getStringExtra("nujuk");
		mAskMoney = intent.getStringExtra("ask");
		mAllPaidMoney = intent.getStringExtra("paid");
		mUsableMoney = intent.getStringExtra("usable");
		
		// String 할당
		mNumberTv.setText(mNumber);
		mAskDateTv.setText(mAskDate);
		mPaidDateTv.setText(mPaidDate);
		mAskMoneyTv.setText(mPaidMoney);
		mIsChangeTv.setText(mIsChange);
		
		mAccountNameTv.setText(mAccountName);
		mBankNameTv.setText(mBankName);
		mAccountNumberTv.setText(mAccountNumber);
		mRequestMoneyTv.setText(mRequestMoney);
		mCommentTv.setText(mComment);
		
		mNujukTv.setText(mNujukMoney);
		mAskTv.setText(mAskMoney);
		mPaidTv.setText(mAllPaidMoney);
		mUsableTv.setText(mUsableMoney);
	}
	
	@Override
	public void onBackPressed() {
		((LottoAdMyPageGroupActivity)getParent()).onBackPressed();
	}
}
